const baseUrl = "http://admin.anquan119.net"

export const urlFormat = (url) => {
    return baseUrl + url
}
export const setCache = (name, data) => {
    window.localStorage.setItem(name, data)
}
export const getCache = (name) => {
    return window.localStorage.getItem(name)
}
export const clearCache = (name) => {
    if (name) {
        window.localStorage.removeItem(name)
    } else {
        window.localStorage.clear()
    }
}
